const http = require('../../../../utils/http.js');
Page({
  data: {
    dataList: []
  },
  onLoad() {
    this.getData();
  },
  getData() {
    http.get('/chengkao/examType/all').then(res =>{
      console.log(res);
      this.setData({
        dataList: res.data.data
      });
    }).catch(err=>{
      console.log(err);
      wx.showToast({
        title: '系统错误，请稍后重试',
        icon: Error
      })
    })
  }
});